package org.example.controller;

import org.example.service.IPgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@RequestMapping("/pg")
public class PgController {
    @Autowired
    private IPgService pgService;
    @RequestMapping("/testInsertUnique")
    public int testInsertUnique() throws InterruptedException{
        UUID uuid = UUID.randomUUID();
        return pgService.testInsertUnique(uuid.toString());
    }
}
